package cn.dada.dadarecipes.community.thumbsup.mapper;

import cn.dada.dadarecipes.community.article.pojo.vo.MyArticleVO;
import cn.dada.dadarecipes.community.thumbsup.pojo.entity.ThumbsUp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface ThumbsUpMapper {
    Boolean insertThumbsUp(ThumbsUp thumbsUp);

    ThumbsUp selectThumbsUp(ThumbsUp thumbsUp);
    List<MyArticleVO> selectApproveArticle(Long userId);

    void deleteThumbsUp(@Param("userId") Long userId,@Param("articleId") Long articleId);
}
